/* 
 * File:   form_equalization.h
 * Author: dima
 *
 * Created on 10 января 2015 г., 15:17
 */

#ifndef _FORM_EQUALIZATION_H
#define	_FORM_EQUALIZATION_H
#include <QDialog>
namespace Ui
{
class form_equalization;
}
namespace ipd
{
class ipd_equalization;
class ipd_img;
}
class widget_histogram;
class widget_curve;

class form_equalization : public QDialog
{
    Q_OBJECT
public:
    form_equalization(ipd::ipd_img &img);
    void init(); //initialization class
    virtual ~form_equalization();
    inline ipd::ipd_img * get_convertible_image();
    void show_img_settings(); //show image settings    
private:
    void create_params(); //create widget histogram and widget curve
    void delete_params(); //delete widget histogram and widget curve
    Ui::form_equalization *widget;
    ipd::ipd_equalization *equalization;
    ipd::ipd_img *convertible_image;
    ipd::ipd_img &original_image;
    widget_histogram *histogram;
    widget_curve *curve;
};

ipd::ipd_img* form_equalization::get_convertible_image()
{
    return convertible_image;
}
#endif	/* _FORM_EQUALIZATION_H */
